package cn.wolfcode.shop.cloud.service;

import cn.wolfode.shop.cloud.domain.OrderInfo;

public interface IOrderInfoService {
    /**
     * 执行秒杀逻辑
     * @param seckillId
     * @param id
     */
    String doSeckillOrder(Long seckillId, Long id);

    OrderInfo queryOrderInfo(String orderNo);
    /**
     * 查看状态是否支付，若未支付，把订单状态改为超时未支付
     * @param orderNo
     * @param statusTimeout
     * @return
     */
    Long changeOrderInfoStatus(String orderNo, Integer statusTimeout);

    /**
     * 修改订单状态
     * @param out_trade_no
     */
    void updateStatus(String out_trade_no,Integer status);
}
